package com.taotao.shop.member.controller.api;


import com.taotao.shop.common.util.R;
import com.taotao.shop.member.feign.CouponFeignService;
import com.taotao.shop.member.pojo.entity.UmsMember;
import com.taotao.shop.member.service.UmsMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 会员 前端控制器
 * </p>
 *
 * @author zwr
 * @since 2021-06-14
 */
@RestController
@RequestMapping("/admin/member")
public class UmsMemberController {

    @Autowired
    private UmsMemberService memberService;

    @Autowired
    private CouponFeignService couponFeignService;

    @RequestMapping("/coupon")
    public R test(){
        UmsMember umsMember = new UmsMember();
        umsMember.setNickname("张三");

        R membercoupons=couponFeignService.membercoupons();
        return R.ok().put("member",umsMember).put("coupons",membercoupons.get("coupon"));
    }
}

